package com.top.utils;

import com.top.em.MenuEnum;

/**
 * @Author:
 * @DateTime: 2023/12/8 22:48
 * @Description: 输出格式化工具类
 */
public class SoutUtil {
    public static void printButton(MenuEnum... menuEnum) {
        System.out.println(MenuEnum.QUIT.getCode()+"-"+MenuEnum.QUIT.getName());
        for (MenuEnum anEnum : menuEnum) {
            System.out.println(anEnum.getCode()+"-"+anEnum.getName());
        }
    }
    public static void printButton() {
        System.out.println(MenuEnum.QUIT.getCode()+"-"+MenuEnum.QUIT.getName());
    }

    public static String printAddColumn(String... string) {
        String str = "[";
        for (String s : string) {
            str =str + s+",";
        }
        return str+"]";
    }
}
